<?php
declare (strict_types = 1);

namespace app\model\user;

use think\Model;

/**
 * @mixin \think\Model
 */
class User extends Model
{
    //
    protected $autoWriteTimestamp = true;
    protected $createTime = 'c_time';
    protected $updateTime = 'u_time';

    public function getPageSize($where = [], $field = '*', $order = 'id asc')
    {
        $page = getPage();
        return $this->where($where)
            ->field($field)
            ->order($order)
            ->paginate($page);
    }
}
